﻿using System;

namespace ThangNM.UserControl
{
    public partial class SearchUI : System.Web.UI.UserControl
    {
        #region "Properties & Event"
        public event EventHandler Search;
        #endregion

        protected void Page_Load(object sender, EventArgs e)
        {
            txtTextSearch.Attributes["onfocus"] = "javascript:this.select();";
        }

        protected void btnSearch_Click(object sender, EventArgs e)
        {
            if (Search != null)
                Search(this, EventArgs.Empty);
            txtTextSearch.Focus();
        }

        public void ResetFormSearch()
        {
            txtTextSearch.Text = "";
            ddlTypeSearch.SelectedValue = "0";
        }

    }
}